﻿using System;
using System.Collections.Generic;
using System.Text;
using BeetleX.Http.Clients;
using System.Threading.Tasks;
using DEEBCG.ExternalLib.CompanyAPI.Model;

namespace DEEBCG.ExternalLib.CompanyAPI
{
    /// <summary>
    /// 获取Token接口类
    /// </summary>
    [Controller(BaseUrl = "/api/Token/")]
    public interface IToken
    {
        /// <summary>
        /// 获取Token
        /// </summary>
        /// <param name="appID">应用ID </param>
        /// <param name="password">加密后的signature</param>
        /// <param name="noiseStr">随即字串(20 - 50个字符长度) </param>
        /// <param name="timestamp">时间戳(1970年起计,毫秒)</param>
        /// <returns></returns>
        [Post]
        Task<ResultInfo<TokenInfo>> GetToken(string appID,string password,string noiseStr,long timestamp);
    }
}
